import java.rmi.Naming;
import java.rmi.server.UnicastRemoteObject;

/**
 * [Class description]
 * 
 * @author doducviet
 * @version $Revision$
 */
public class Client {
    /**
     * [method description]
     * 
     * @author doducviet
     * @param args
     */
    public static void main(String[] args) throws Exception {
        AtClient client = new AtClientImpl();
        UnicastRemoteObject.exportObject(client);
        AtServer server = (AtServer) Naming.lookup("rmi://localhost/rmi");
        server.registerClient(client);
        server.callServerMethod("client contact Server");
    }
}
